package com.lin.app.service;

import com.lin.springframework.Autowired;
import com.lin.springframework.Component;

@Component
public class BService implements IBService{

    @Autowired
    private IAService AService;


    // 默认
    public BService() {
        System.out.println("创建B");
    }


    @Override
    public void say() {
        System.out.println("Hi~ I'm B, My A is:"+AService.getClass());
    }
}
